// httpService.js
import axiosInstance2 from './axiosAll/axiosInstance2';

function getHttps(url) {
    return new Promise((resolve, reject) => {
        axiosInstance2.get(url)
            .then(response => resolve(response))
            .catch(error => reject(error));
    });
}

function postHttps(url, data) {
    return new Promise((resolve, reject) => {
        axiosInstance2.post(url, data)
            .then(response => resolve(response))
            .catch(error => reject(error));
    });
}

export {
    getHttps,
    postHttps
};